// 1:获取图形验证码
import axios1 from '@/utils/request'

export const getImgCaptcha = () => {
  return axios1.get('/captcha/image')
}
export const getPhoneCaptcha = (mobile, code, key) => {
  return axios1({
    url: '/captcha/sendSmsCaptcha',
    method: 'post',
    data: {
      form: {
        mobile: mobile,
        captchaKey: key,
        captchaCode: code
      }
    }
  })
}
export const login = (mobile, smsCode) => {
  return axios1({
    url: '/passport/login',
    method: 'post',
    data: {
      form: {
        isParty: false,
        mobile: mobile,
        partyData: {},
        smsCode: smsCode
      }
    }
  })
}
